package com.example.psychologicalappointmentsystem.Object;

import com.example.psychologicalappointmentsystem.common.ParamCheck;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * ClassName ConsultationTimeVO
 * Description TODO
 * Date 2025/2/11 15:19
 * Version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class ConsultationTimeVO extends PageRequest{

    private Long consultantId; // 咨询师id
    private LocalDate date;//咨询师可选工作时间
    private String acceptStatus; //咨询师接受状态，0-取消预约，1-接受预约
    private Long orderId;
    private String cancelMsg;//取消理由

    public void checkdate() {
        ParamCheck.mustNonNull(consultantId, "咨询师ID 不能为空");
        ParamCheck.mustNonNull(date, "时间 不能为空");
    }
}
